package com.prs.crm.domain.cdxh.distribution;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.cdxh.AlreadyDistribution;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2011-1-10 上午10:03:15 简单说明
 */
@Entity
@Table(name = "cdxh_DistributionReturnDetail")
public class DistributionReturnDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	@ManyToOne
	private DistributionReturn distributionReturn;

	/**
	 * 产品编号
	 */
	private String proCode;

	/**
	 * 产品名称
	 */
	private String proName;

	/**
	 * 产品规格
	 */
	private String proNorm;

	/**
	 * 产品颜色
	 */
	private String proColor;

	/**
	 * 包转方式
	 */
	private String proPackWay;

	/**
	 * 价格
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private Double proPrice;

	/**
	 * 单位
	 */
	private String proUnit;

	/**
	 * 平方
	 */
	private String proSqual;

	/**
	 * 小计
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private Double proToltal;

	/**
	 * 已配送数量
	 */
	private int disNums;

	/**
	 * 配送打回数量
	 */
	private int disReturnNums;

	/**
	 * 配送状态显示 默认是“1”,如果是‘2’表示已有打回的数量，如果是‘3’表示配送的全部已打回。
	 */
	@Column(columnDefinition = "Integer(11) default '1'")
	private int disState;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public DistributionReturn getDistributionReturn() {
		return distributionReturn;
	}

	public void setDistributionReturn(DistributionReturn distributionReturn) {
		this.distributionReturn = distributionReturn;
	}

	public String getProCode() {
		return proCode;
	}

	public void setProCode(String proCode) {
		this.proCode = proCode;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public String getProNorm() {
		return proNorm;
	}

	public void setProNorm(String proNorm) {
		this.proNorm = proNorm;
	}

	public String getProColor() {
		return proColor;
	}

	public void setProColor(String proColor) {
		this.proColor = proColor;
	}

	public String getProPackWay() {
		return proPackWay;
	}

	public void setProPackWay(String proPackWay) {
		this.proPackWay = proPackWay;
	}

	public Double getProPrice() {
		return proPrice;
	}

	public void setProPrice(Double proPrice) {
		this.proPrice = proPrice;
	}

	public int getDisNums() {
		return disNums;
	}

	public void setDisNums(int disNums) {
		this.disNums = disNums;
	}

	public int getDisReturnNums() {
		return disReturnNums;
	}

	public void setDisReturnNums(int disReturnNums) {
		this.disReturnNums = disReturnNums;
	}

	public int getDisState() {
		return disState;
	}

	public void setDisState(int disState) {
		this.disState = disState;
	}

	public String getProUnit() {
		return proUnit;
	}

	public void setProUnit(String proUnit) {
		this.proUnit = proUnit;
	}

	public String getProSqual() {
		return proSqual;
	}

	public void setProSqual(String proSqual) {
		this.proSqual = proSqual;
	}

	public Double getProToltal() {
		return proToltal;
	}

	public void setProToltal(Double proToltal) {
		this.proToltal = proToltal;
	}

}
